const CopyPlugin = require('copy-webpack-plugin')

module.exports = {
  babel: {
    plugins: [
      '@babel/plugin-proposal-optional-chaining',
      ['import', { libraryName: 'antd' }],
    ],
  },
  webpack: {
    plugins: [
      new CopyPlugin([
        { from: 'node_modules/antd/dist/antd.css', to: 'antd.css' },
      ]),
    ],
  },
}
